package jdo.bd;
/*
import javax.jdo.PersistenceManager;
import com.google.appengine.api.datastore.Transaction;
*/
import jdo.bd.BD_Velo;
import jdo.entity.Velo;

public class BD extends BD_Velo{
	
	public void ajouter() {
	Velo v1 = new Velo("Salut",22,"coucou",12,145.5,147.5);
	addVelo(v1);
	}
}

/*	public BD() {
	PMF p = new PMF();
	PersistenceManager pm = PMF.getPersistenceManager();
	Transaction tx = (Transaction) pm.currentTransaction();
    try {
        ((javax.jdo.Transaction) tx).begin();
        pm.makePersistent(p);
        tx.commit();
    } finally {
        if (tx.isActive()) {
            tx.rollback();
        	}
    	}
	}*/
